const tree = require('./bt')

const dfs = root => {
  console.log(root.value);
  if(root.children && root.children.length > 0){
    root.children.forEach(dfs)
  }
}

dfs(tree)